package org.dromara.business.domain;

import lombok.Data;

import org.springframework.data.annotation.TypeAlias;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.annotation.Id;
import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
@Document(collection = "events")
@TypeAlias("")
public class Events {
    @Id
    private String id;

    private String eventId;

    private String type;

    /**
     * 类型  in-转入;out-取出
     */
    private String transferType;

    /**
     * 状态 completed-成功 pending-处理中
     */
    private String status;

    private BigInteger blockNumber;

    /**
     * formAddress
     */
    private String sender;

    /**
     * To地址
     */
    private String recipient;

    /**
     * Token USDT USDC
     */
    private String token;

    private String tokenType;

    private String amount;

    /**
     * 金额
     */
    private String realAmount;

    /**
     * 手续费
     */
    private String fee;

    /**
     * From Hash
     */
    private String sourceTxHash;

    /**
     * form网络
     */
    private String source;

    /**
     * To网络
     */
    private String target;

    private String targetBlockNumber;

    /**
     * To Hash
     */
    private String targetTxHash;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private String error;

}
